package com.example.controller;

import com.example.entity.MyResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fyxw
 */
@RestController
@RequestMapping("/status")
public class ErrorController {
    @RequestMapping("/401")
    public MyResponseEntity<?> response401() {
        return new MyResponseEntity<>(401, "认证失败", null);
    }
}
